package org.realogic.cfm.domain;

public class KLongPK implements KPrimaryKey {

	private static final long serialVersionUID = 7387366055577757733L;

	protected long pk;

	public KLongPK() {

	}

	public KLongPK(long value) {
		this.pk = value;
	}

	public long getPk() {
		return pk;
	}

	public void setPk(long value) {
		this.pk = value;
	}

	public void setKeyValue(String keyStrValue) {
		pk = Long.parseLong(keyStrValue);
	}

	public String getKeyValue() {
		return String.valueOf(pk);
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("LongPK[");
		returnString.append("pk = " + getPk() + ";");
		returnString.append("]");
		return returnString.toString();
	}

}
